Ext.define('Admin.view.archive.PlantController', {
	        extend : 'Admin.app.archive.CustomController',

	        alias : 'controller.plant',

	        beforeInsert : function(record, parent) {
		        record.data.type = 1;
		        record.data.company = parent.data.id
	        },

	        afterDetail : function(record, win) {
		        var me = this, vm = win.getViewModel(), parent = me.getCr();

		        var store = me.getStore('seservoirStore');
		        if (store.getProxy().extraParams.id !== parent.data.id) {
			        store.getProxy().extraParams.id = parent.data.id;
			        store.reload();
		        }
		        vm.set('seservoirStore', store);
	        }

        });